using System.Web.UI;
using EPiServer.Core;

namespace OpenWaves.EPiServer
{
    public class TemplateMasterPage : TemplateMasterPage<PageData>
    {
    }

    public class TemplateMasterPage<T> : MasterPage where T : PageData
    {
        private T currentPage;
        protected T CurrentPage
        {
            get
            {
                if (this.currentPage == null)
                    this.currentPage = (T)this.Context.GetCurrentPage();
                return this.currentPage;
            }
        }
    }
}